package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.goods.model.GoodsGetVirtualCatInfoProducts;
//import com.rbyair.services.goods.model.GoodsGetVirtualCatInfoList;
/**
* 获取虚拟分类一级详情
* @author wliu
* edit tse
*/
public class GoodsGetVirtualCatInfoResponse extends RudderResponse{

private String virtualCatId = "";


private String virtualCatName = "";


private String link = "";


private String linkType = "";


private String img = "";


private List<GoodsGetVirtualCatInfoProducts> products = new ArrayList<GoodsGetVirtualCatInfoProducts>();


private List<GoodsGetVirtualCatInfoList> list = new ArrayList<GoodsGetVirtualCatInfoList>();


/**
* @return virtualCatId
*/
public String getVirtualCatId() {
return this.virtualCatId;
}

/**
* @return virtualCatId
*/
public void setVirtualCatId(String virtualCatId) {
this.virtualCatId = virtualCatId;
}
/**
methodName    VirtualCatId
type          String
name          virtualCatId
defaultType   ""
*/

/**
* @return virtualCatName
*/
public String getVirtualCatName() {
return this.virtualCatName;
}

/**
* @return virtualCatName
*/
public void setVirtualCatName(String virtualCatName) {
this.virtualCatName = virtualCatName;
}
/**
methodName    VirtualCatName
type          String
name          virtualCatName
defaultType   ""
*/

/**
* @return link
*/
public String getLink() {
return this.link;
}

/**
* @return link
*/
public void setLink(String link) {
this.link = link;
}
/**
methodName    Link
type          String
name          link
defaultType   ""
*/

/**
* @return linkType
*/
public String getLinkType() {
return this.linkType;
}

/**
* @return linkType
*/
public void setLinkType(String linkType) {
this.linkType = linkType;
}
/**
methodName    LinkType
type          String
name          linkType
defaultType   ""
*/

/**
* @return img
*/
public String getImg() {
return this.img;
}

/**
* @return img
*/
public void setImg(String img) {
this.img = img;
}
/**
methodName    Img
type          String
name          img
defaultType   ""
*/

/**
* @return products
*/
public List<GoodsGetVirtualCatInfoProducts> getProducts() {
return this.products;
}

/**
* @return products
*/
public void setProducts(List<GoodsGetVirtualCatInfoProducts> products) {
this.products = products;
}
/**
methodName    Products
type          List<GoodsGetVirtualCatInfoProducts>
name          products
defaultType   new ArrayList<GoodsGetVirtualCatInfoProducts>()
*/

/**
* @return list
*/
public List<GoodsGetVirtualCatInfoList> getList() {
return this.list;
}

/**
* @return list
*/
public void setList(List<GoodsGetVirtualCatInfoList> list) {
this.list = list;
}
/**
methodName    List
type          List<GoodsGetVirtualCatInfoList>
name          list
defaultType   new ArrayList<GoodsGetVirtualCatInfoList>()
*/

/**


    private static void filterFor(GoodsGetVirtualCatInfoProducts goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getPrice() == null) {
            goods.setPrice("");
        }
        if (goods.getMktprice() == null) {
            goods.setMktprice("");
        }
        if (goods.getQuantity() == null) {
            goods.setQuantity("");
        }
        if (goods.getName() == null) {
            goods.setName("");
        }
        if (goods.getThumbnailPic() == null) {
            goods.setThumbnailPic("");
        }
        if (goods.getBn() == null) {
            goods.setBn("");
        }
        if (goods.getBuyerNum() == null) {
            goods.setBuyerNum("");
        }
    }

    private static void filterFor(GoodsGetVirtualCatInfoList goods) {
        if (goods.getVirtualCatId() == null) {
            goods.setVirtualCatId("");
        }
        if (goods.getVirtualCatName() == null) {
            goods.setVirtualCatName("");
        }
        if (goods.getImg() == null) {
            goods.setImg("");
        }
    }

    public static void filter(GoodsGetVirtualCatInfoResponse goods) {
        if (goods.getVirtualCatId() == null) {
            goods.setVirtualCatId("");
        }
        if (goods.getVirtualCatName() == null) {
            goods.setVirtualCatName("");
        }
        if (goods.getLink() == null) {
            goods.setLink("");
        }
        if (goods.getLinkType() == null) {
            goods.setLinkType("");
        }
        if (goods.getImg() == null) {
            goods.setImg("");
        }
        if (goods.getProducts() == null) {
            goods.setProducts(new ArrayList<GoodsGetVirtualCatInfoProducts>());
        } else {
            for (GoodsGetVirtualCatInfoProducts item : goods.getProducts()) {
                filterFor(item);
            }
        }
        if (goods.getList() == null) {
            goods.setList(new ArrayList<GoodsGetVirtualCatInfoList>());
        } else {
            for (GoodsGetVirtualCatInfoList item : goods.getList()) {
                filterFor(item);
            }
        }
    }

*/

}
